<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
  String path = request.getContextPath();
  String currentMenu = (String)request.getSession().getAttribute("currentMenu");
  if(currentMenu == null || currentMenu.equals("")){
	  currentMenu = "index";
  }
%>

<%if(currentMenu.equals("index")){ %>
<div data-options="region:'west',split:true" title="首页" style="width:200px;">  
            <div class="easyui-accordion" data-options="fit:true,border:false"> 
                <div title="消息列表" style="padding:1px;border:1px solid #ddd" data-options="selected:true">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/dictionary/list.do" data-options="plain:true">消息列表</a></li>
                    </ul>
                </div> 
            </div> 
</div>  
<%} %>


<%if(currentMenu.equals("contract")){ %>
<div data-options="region:'west',split:true" title="合同管理" style="width:200px;">  
            <div class="easyui-accordion" data-options="fit:true,border:false"> 
                <div title="合同管理" style="padding:1px;border:1px solid #ddd" data-options="selected:true">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/dictionary/list.do" data-options="plain:true">合同管理</a></li>
                    </ul>
                </div> 
            </div> 
</div>  
<%} %>

<%if(currentMenu.equals("sale")){ %>
<div data-options="region:'west',split:true" title="销售管理" style="width:200px;">  
            <div class="easyui-accordion" data-options="fit:true,border:false"> 
                <div title="销售管理" style="padding:1px;border:1px solid #ddd" data-options="selected:true">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/dictionary/list.do" data-options="plain:true">销售管理</a></li>
                    </ul>
                </div> 
            </div> 
</div>  
<%} %>


<%if(currentMenu.equals("customer")){ %>
<div data-options="region:'west',split:true" title="客户管理" style="width:200px;">  
            <div class="easyui-accordion" data-options="fit:true,border:false"> 
                <div title="客户管理" style="padding:1px;border:1px solid #ddd" data-options="selected:true">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/customer/list.do" data-options="plain:true">客户管理</a></li>
                    </ul>
                </div> 
            </div> 
</div>  
<%} %>

<%if(currentMenu.equals("supplier")){ %>
<div data-options="region:'west',split:true" title="供应商管理" style="width:200px;">  
            <div class="easyui-accordion" data-options="fit:true,border:false"> 
                <div title="供应商管理" style="padding:1px;border:1px solid #ddd" data-options="selected:true">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/supplier/list.do" data-options="plain:true">供应商管理</a></li>
                    </ul>
                </div> 
            </div> 
</div>  
<%} %>

<%if(currentMenu.equals("stat")){ %>
<div data-options="region:'west',split:true" title="统计分析" style="width:200px;">  
            <div class="easyui-accordion" data-options="fit:true,border:false"> 
                <div title="消息列表" style="padding:1px;border:1px solid #ddd" data-options="selected:true">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/dictionary/list.do" data-options="plain:true">消息列表</a></li>
                    </ul>
                </div> 
            </div> 
</div>  
<%} %>

<%if(currentMenu.equals("system")){ %>
<div data-options="region:'west',split:true" title="系统管理" style="width:200px;">  
            <div class="easyui-accordion" data-options="fit:true,border:false"> 
                <div title="人员管理" style="padding:1px;border:1px solid #ddd" data-options="selected:true">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/dept/list.do" data-options="plain:true">部门管理</a></li>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/user/list.do" data-options="plain:true">人员管理</a></li>
                    </ul>
                </div> 
                <div title="字典管理" style="padding:1px;border:1px solid #ddd">  
                    <ul>
                        <li ><a class="easyui-linkbutton" href="<%=path%>/dictionary/list.do" data-options="plain:true">字典管理</a></li>
                    </ul>
                </div>
                 
            </div> 
</div>  
<%} %>


